package com.yonyou.byb.utils;

import nc.bs.framework.common.NCLocator;
import nc.itf.uap.IUAPQueryBS;
import nc.vo.pub.BusinessException;
import nc.vo.pub.SuperVO;

public class BaseQryTool {

	private static final IUAPQueryBS service = NCLocator.getInstance().lookup(IUAPQueryBS.class);
	
	public static String getInfoByPk(Class<?> clazz, String name, String pk){
		try {
			SuperVO supvo = (SuperVO) service.retrieveByPK(clazz, pk);
			return (String) supvo.getAttributeValue(name);
		} catch (BusinessException e) {
			return "";
		}
		
	}
}
